﻿using FastCode.DTO;
using FastCode.Models;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Reflection;

namespace FastCode.Architecture
{

    [ApiController]
    [Route("api/[controller]/[action]")]
    public class ApiPureController : ControllerBase
    {
        public SqlSugarClient db = SqlSugarHelper.Db;
        public ISugarQueryable<BEntity> GetBaseQuery<BEntity>() where BEntity : BaseModel
        {
            return db.Queryable<BEntity>().Where(x => !x.IsDeleted);
        }
    }
}
